package com.utcs.modules.resource.basic.service;

import com.utcs.common.service.CrudService;
import com.utcs.modules.resource.basic.dao.RoleDao;
import com.utcs.modules.resource.basic.entity.Role;
import com.utcs.modules.resource.basic.utils.UserUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Fly on 2017/6/1.
 */
@Service
@Transactional(readOnly = true)
public class RoleService extends CrudService<RoleDao,Role>{

    /**
     * 获取所有角色
     * @return
     */
    public List<Role> findAllRole(){
        return UserUtils.getRoleList();
    }
}
